package com.matt.repository.course;

import com.matt.domain.course.Course;
import com.matt.domain.course.CourseChild;
import com.matt.foundation.query.ClassesQuery;
import com.matt.foundation.query.CourseAreaQuery;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2018/11/22
 * *******************************
 */
public interface CourseRepository2 {

    List<Course> courseList(ClassesQuery query);

    Integer courseCount(ClassesQuery query);

    List<Course> courseLiveList(ClassesQuery query);

    Integer courseLiveCount(ClassesQuery query);

    List<CourseChild> findAllChildByAreaIdAndName(CourseAreaQuery query);

    Integer findAllChildCounts(CourseAreaQuery query);
}
